package com;

import cn.hutool.core.util.IdUtil;

import java.math.BigDecimal;
import java.util.UUID;

public class Test {
    public static void main(String[] args) {
        System.out.println(19.99+20);
        BigDecimal big1 = new BigDecimal("19.99");//  BigDecimal.valueOf(19.99);
        BigDecimal big2 = BigDecimal.valueOf(20);
        BigDecimal result = big1.add(big2);
        System.out.println(result.toString());


        BigDecimal s = BigDecimal.valueOf(1);
        for (int i=1;i<=50;i++)
        {
            s = s.multiply(BigDecimal.valueOf(i));
        }
        System.out.println(s);
        
        String uuid  = IdUtil.fastUUID();
        System.out.println(uuid);

        String uuid2 = UUID.randomUUID().toString();
        System.out.println(uuid2);

        long id = IdUtil.createSnowflake(0,0).nextId();
        System.out.println(id);


    }
}
